﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="TopicGroupFiles.aspx.cs" Inherits="Topics_TopicGroupFiles" %>
<%@ Register TagPrefix="uc" TagName="Menu" Src="~/Topics/Menu.ascx"%>
<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phSubMenu" Runat="Server">
    <uc:Menu id ="menu" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <ajax:Accordion ID="accordian" SkinID="Title" runat="server">
        <Panes>
            <ajax:AccordionPane runat="server">
                <Header><asp:Label ID="lblTitle" runat="server" /></Header>
                <Content><asp:Label ID="lblNotes" runat="server" /></Content>
            </ajax:AccordionPane>
        </Panes>
    </ajax:Accordion>
    <telerik:RadGrid ID="gridFiles" AutoGenerateColumns="False" 
        DataSourceID="dsFiles" runat="server" GridLines="None">
<MasterTableView DataSourceID="dsFiles">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="TopicName" HeaderText="Topic Name" ReadOnly="false" UniqueName="column">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" ReadOnly="false" UniqueName="column">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="FileType" HeaderText="File Type" ReadOnly="True" 
            UniqueName="column1">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ContentType" HeaderText="Content Type" ReadOnly="true" UniqueName="column2">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Width" HeaderText="Width" ReadOnly="true" UniqueName="column4">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Height" HeaderText="Width" ReadOnly="true" UniqueName="column5">
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn>
            <ItemTemplate>
                <acms:AcmsImage ID="img" FileId='<%#Eval("FileId") %>' RenderWidth="200" RenderHeight="55" runat="server"/>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>

<EditFormSettings>
<PopUpSettings ScrollBars="None"></PopUpSettings>
</EditFormSettings>
</MasterTableView>
    </telerik:RadGrid>

    <acms:TopicFileDataSource ID="dsFiles" runat="server" 
        onselectdata="dsFiles_SelectData"></acms:TopicFileDataSource>
</asp:Content>

